VT-d: prevent dom0 to use VT-d HW
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 8 Sep 2009 14:10:31 +0000 (15:10 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 8 Sep 2009 14:10:31 +0000 (15:10 +0100)
commit83904107a33c9badc34ecdd1f8ca0f9271e5e370
treefae5fb0bf4cf7f9a73c4e97f59546510f4177f18
parent7c49bea080307c65b9d04b18df488f7787250d22
VT-d: prevent dom0 to use VT-d HW

pv-ops dom0 contains Linux upstream VT-d driver, and will go to enable
it when VT-d is set in kernel config file. It should not enable VT-d
in dom0.

Currently it already zaps ACPI DMAR signature to prevents dom0 using
VT-d HW when VT-d is enabled for Xen. But when VT-d is not enabled for
Xen, and VT-d is set in pv-ops kernel config file, pv-ops dom0 will go
to enable it. This will results in pv-ops dom0 booting failure. This
patch prevents dom0 to use VT-d HW whether VT-d is enabled or disabled
for Xen.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.c